public class runChef {
    public static void main(String[] args) {
        Chef chef = new Chef();
        Waiter waiter = new Waiter();
        waiter.setChef(chef);
        chef.setWaiter(waiter);
        Restaurant rest = new Restaurant();
        rest.setWaiter(waiter);
        new Thread(waiter).start();
        new Thread(chef).start();
        new Thread(rest).start();
    }
}
